home *** CD-ROM | disk | FTP | other *** search
Wrap
XSetup plugin | 2002-12-06 | 2.7 KB | 118 lines
"FILE"="Xteq Systems X-Setup Plugin 5.0" "TYPE"="9" "COUNT"="1" "UIPATH 1"="Appearance\Start menu\Windows XP\New Start Menu" "NAME"="Start Menu Options #2" "VERSION"="1.00" "LANGUAGE"="VBScript" "OSVERSION"="000001" "TEXT 1"="dⁿdel dⁿ" "DESCRIPTION 1"="Show highlighted: When you install a new application that creates an entry into your Start Menu, it will be highlighted so you can easily see which items are new." "AUTHOR"="Xteq Systems" "CONTACTURL"="http://www.xteq.com" "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved" "COMMENT 1"="Applies to the New Start Menu only" "COMMENT 2"="Setting 1 found at WinGuides - http://www.winguides.com/registry/display.php/1221/" "COMMENT 3"="" "COMMENT 4"="" sV_HighlightProg="HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Start_NotifyNewApps" SUB Plugin_Initialize 'XP Call SetUIElement(1,"Show new items in Start Menu highlighted") Call ReadIt_2(1,sV_HighlightProg) END SUB SUB Plugin_CheckData(ElementIndex) END SUB SUB Plugin_Apply(ElementIndex,ElementSubIndex) Call WriteIt_2(1,sV_HighlightProg) Call IndicateSettingChange() Call Logoff() END SUB SUB Plugin_Terminate END SUB Sub ReadIt(ITM,PATH1) if RegValueExists(PATH1)=false then 'setting available? 'no setting -> item visible Call SetUIElementEx(ITM,true) else i=RegReadValue(PATH1) if IsNumeric(i)=true then if i=0 then Call SetUIElementEx(ITM,true) end if end if end if End Sub Sub ReadIt_2(ITM,PATH1) if RegValueExists(PATH1)=false then 'setting available? 'no setting -> item not visible Call SetUIElementEx(ITM,false) else i=RegReadValue(PATH1) If IsNumeric(i)=true then if i=1 then Call SetUIElementEx(ITM,true) end if end if end if End Sub Sub ReadIt_3(ITM,PATH1) if RegValueExists(PATH1)=false then 'setting available? 'no setting -> item is active Call SetUIElementEx(ITM,true) else s=RegReadValue(PATH1) if LCase(s)="yes" then Call SetUIElementEx(ITM,true) end if end if End Sub Sub WriteIt(ITM,PATH1) b=GetUIElementEx(ITM) if b=true then s=RegReadValue(PATH1) if IsEmpty(s)=false then Call RegDeleteValue(PATH1) end if else Call RegWriteValue(PATH1,1,2) end if End Sub Sub WriteIt_2(ITM,PATH1) b=GetUIElementEx(ITM) if b=true then Call RegWriteValue(PATH1,1,2) else Call RegWriteValue(PATH1,0,2) end if end Sub Sub WriteIt_3(ITM,PATH1) b=GetUIElementEx(ITM) if b=true then Call RegWriteValue(PATH1,"YES",1) else Call RegWriteValue(PATH1,"NO",1) end if End Sub